@echo off
SETLOCAL

REM core script directories
set BASE_DIR=%~dp0
set SCRATCH_DIR=scratch
set TOOLS_DIR=tools

REM Adjust as required
set sxHome=%TOOLS_DIR%\servingxml
set sxConfigFile=localSXConfig.xml
set inputFile=%SCRATCH_DIR%\localExport_raw.csv
set outputFile=%SCRATCH_DIR%\localExport_raw.xml

REM Update only if you changed it in localSXConfig.xml
set sxServiceID=localCSV2XML

pushd %BASE_DIR%

%sxHome%\servingxml -r %sxConfigFile% -i %inputFile% -o %outputFile% %sxServiceID%

popd
ENDLOCAL